how to solve sherlock and array problem in java

visit shbcf.ru